package PontoEletronico;

public class MostraSeta implements Runnable{
	private String s;
	
	public MostraSeta(String s){
		this.s = s;
	}
	@Override
	public void run() {
		try{
			for(int i=0; i<=4;i++){
				if(s.equals("verde")){
					Principal.setaVerde.setVisible(true);
				}else{
					Principal.setaVerm.setVisible(true);		
				}
				Thread.sleep(350);
				Principal.setaVerde.setVisible(false);
				Principal.setaVerm.setVisible(false);
				Thread.sleep(350);
			}
		}catch (InterruptedException e){}
	}
}
